package com.seashop.feign;

import com.seashop.feign.fallback.ManageFeignClientFallBack;
import com.seashop.request.LocalTransRequestParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author moredln
 * @desc 系统参数feign调用
 * @date 2020-08-11 11:01
 */
@FeignClient(value = "manage", fallback = ManageFeignClientFallBack.class)
public interface ManageFeignClient {

    @GetMapping("/systemConfig/key/{key}")
    String getValue(@PathVariable("key") String sysKey);

    @GetMapping("/dataDictionary/localTrans")
    String localTrans(LocalTransRequestParam param);
}
